package library.user;

import animal.B;
import library.operation.IOperation;
import library.operation.impl.BorrowOperation;
import library.operation.impl.FindOperation;
import library.operation.impl.ListAllBookOperation;
import library.operation.impl.ReturnOperation;

import java.util.Scanner;

public class NormalUser extends User{

    public NormalUser(String username){
        super(username);
        this.operations=new IOperation[]{
                new ListAllBookOperation(),
                new FindOperation(),
                new BorrowOperation(),
                new ReturnOperation()
        };
    }
    @Override
   public int menu() {
        System.out.println("================================");
        System.out.println("欢迎"+this.mame+"登录火箭图书管理系统");
        System.out.println("1、显示当前书籍列表");
        System.out.println("2、查找书籍");
        System.out.println("3、借阅书籍");
        System.out.println("4、归还书籍");
        System.out.println("-1、退出图书管理系统,欢迎下次再来");
        System.out.println("================================");
        System.out.println("请输入您的选择:");
        Scanner scanner=new Scanner(System.in);
        int choice=scanner.nextInt();
        return choice;
    }
}
